package com.macro.mall.portal.service;

import com.macro.mall.model.BmsSightseeingBusApplicant;
import com.macro.mall.model.BmsSightseeingBusPoint;
import com.macro.mall.portal.dto.BmsSightseeingBusApplicantParam;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 观光车预约Service
 * Created by macro on 2018/4/26.
 */
public interface BmsSightseeingBusApplicantService {
    /**
     * 获取预约数据
     */
    List<BmsSightseeingBusApplicant> getList(BmsSightseeingBusApplicantParam bmsSightseeingBusApplicantParam);

    /**
     * 新增预约
     */
    BmsSightseeingBusApplicant create(BmsSightseeingBusApplicant bmsSightseeingBusApplicant) throws Exception;

    /**
     * 修改预约
     */
    int update(BmsSightseeingBusApplicant bmsSightseeingBusApplicant);

    /**
     * 获取预约信息
     */
    BmsSightseeingBusApplicant getItem(Long id);

    /**
     * 批量删除观光车
     */
    @Transactional
    int delete(List<Long> ids);


    /**
     * 小程序获取点位信息
     * @return
     */
    List<BmsSightseeingBusPoint> getMpListPoint(BmsSightseeingBusPoint bmsSightseeingBusPoint);


    List<BmsSightseeingBusApplicant> getListByUserId();


    BmsSightseeingBusApplicant getSuccessBusDataByUserId(BmsSightseeingBusApplicant bmsSightseeingBusApplicant);

}
